<include file="__PUBLIC__/head.php">
	<title>栏目列表</title>
</head>
<body class="bgwhite-1">
	<div class="Menu">
		<a href="{|U:'index'}" class="act"><i class="icon-reorder mr3 gray"></i>栏目管理</a>
		<a href="{|U:'add'}"><i class="icon-plus mr3 gray"></i>添加栏目</a>
		<a href="{|U:'updateCache'}" class="ajax" actUrl="{|U('index')}"><i class="icon-refresh mr3 gray"></i>更新缓存</a>
	</div>
	<div class="p10">
		<table class="table">
			<tr class=' white fm f14'>
				<th class="pct5 tc">cid</th>
				<th class="pct25">栏目名称</th>
				<th class="pcd10">图片</th>
				<th class="pct10">类型</th>
				<th class="pct10">链接</th>
				<th class="pct40 tc">操作</th>
			</tr>
			<foreach from="$category" value="$c">
				<tr level="{$c._level}" cid="{$c.cid}" pid="{$c.pid}" onclick="level(this);">
					<td class='tc'><span class="b gray2">{$c.cid}</span></td>
					<td class=''><b class="state bggray3 dib tc lh20 w20 h20 white rad50 b a f14 hand mr5">+</b> {$c._name}</td>
					<td class='tc'>
						<if value="$c.pic"><div class="showPic dib bde"><img src="__ROOT__/{$c.pic}" height="30" /></div>
						<else/>
						&emsp;&emsp;&emsp;&emsp;
						</if>
					</td>
					<td class='tc'>
						<if value="$c.type neq 1">
							<span class="orange">封面栏目</span>
						<else/>
							普通栏目
						</if>

					</td>
					<td class='tc fv'>{$c.url}</td>
					<td class='tc'>
						<a href="{|U:'edit?cid='}{$c.cid}" class="a bgwhite green bdd p5 mr5"><i class="icon-edit icon-border mr3 icon-large "></i>修改</a>
						<a href="{|U:'del?cid='}{$c.cid}" onclick='return del();' class="a bgwhite dels red bdd p5 mr5"><i class="icon-trash icon-border mr3 icon-large"></i>删除</a>
						<a href="{|U:'add?pid='}{$c.cid}" class="a bgwhite maroon bdd p5"><i class="icon-plus-sign icon-border mr3 icon-large"></i>添加子栏目</a>
					</td>
				</tr>
			</foreach>
		</table>
	</div>
<include file="__PUBLIC__/bottom.php">